<?php
/**
 * Created by JetBrains PhpStorm.
 * User: HoangAlex
 * Date: 6/5/12
 * Time: 4:59 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<?php echo $this->Form->create('SanPham', array('action' => 'edit')); ?>
<fieldset>
    <legend>Cập nhật thông tin sản phẩm</legend>
    <dl>
        <?php echo $this->Form->input('id', array('type' => 'hidden')); ?>
    </dl>

    <dl>
        <dt><label>Tên sản phẩm</label></dt>
        <dd><?php echo $this->Form->input('TENSP', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Hình ảnh</label></dt>
        <dd>
            <?php
            echo $this->Form->image('image', array('type' => 'file'));?>
        </dd>
    </dl>
    <dl>
        <dt><label>Nhà sản xuất</label></dt>
        <dd><?php echo $this->Form->input('nhasanxuat_id', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Loại sản phẩm</label></dt>
        <dd><?php echo $this->Form->input('loaisanpham_id', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Số lượng khuyến mãi</label></dt>
        <dd><?php echo $this->Form->input('SOLUONGKHUYENMAI', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Giá bán sỉ</label></dt>
        <dd><?php echo $this->Form->input('GIABANSI', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Giá bán lẻ</label></dt>
        <dd><?php echo $this->Form->input('GIABANLE', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Đơn vị tính</label></dt>
        <dd><?php echo $this->Form->input('DONVITINH', array('label' => false)); ?></dd>
    </dl>
</fieldset>
<div class="button">
<?php
echo $this->Form->submit('Sửa', array('div' => false));
echo $this->Html->link('Hủy', array('action' => 'index'),array('class' => 'cancel'));
?>
</div>